package cz.data.domain.market.model.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import cz.data.domain.market.model.dto.TableApiSettings;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.time.LocalDateTime;

@Getter
@Setter
public class TableApiVo implements Serializable {
    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "主键")
    private String id;
    @ApiModelProperty(value = "API名称")
    private String apiName;
    @ApiModelProperty(value = "API路径")
    private String apiUrl;
    @ApiModelProperty(value = "数据源")
    private String sourceId;
    @ApiModelProperty(value = "数据库表")
    private String tableId;
    @ApiModelProperty(value = "API配置")
    private TableApiSettings settings;

    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime createTime;
    @ApiModelProperty(value = "状态", notes = "0不启用，1启用")
    private String status;
    @ApiModelProperty(value = "备注")
    private String remark;
}
